<template>
  <div class="kill-box">
    秒杀
    <!-- <van-button type="primary" @click="fn">主要按钮</van-button> -->
    <van-count-down :time="time">
      <template #default="timeData">
        <span class="block">{{ timeData.hours }}</span>
        <span class="colon">:</span>
        <span class="block">{{ timeData.minutes }}</span>
        <span class="colon">:</span>
        <span class="block">{{ timeData.seconds }}</span>
      </template>
    </van-count-down>
  </div>
</template>

<script>
export default {
  name: "SecondsKill",
  data() {
    return {
      time: 3600000,
    };
  },
  methods: {
    fn() {
      console.log("hhhhhh");
    },
  },
};
</script>

<style scoped>
.kill-box {
  width: 100%;
  height: 6.875rem;
  background-color: orange;
}

.colon {
    display: inline-block;
    margin: 0 4px;
    color: #ee0a24;
  }
  .block {
    display: inline-block;
    width: 18px;
    color: #fff;
    font-size: 12px;
    text-align: center;
    background-color: #ee0a24;
    border-radius: 5px;
  }
</style>